﻿using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Corona.TagContract
{
    /// <summary>
    /// 标签类，对应Xml描述文件中的一个结点
    /// 
    /// </summary>
    [DataContract]
    public class Tag
    {

        private string name;
        private string value;

        /// <summary>
        /// 标签的种类，对应于xml中的结点的name属性
        /// </summary>
        [DataMember]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        /// <summary>
        /// 标签的值，对应于xml中的结点的InnerText
        /// </summary>
        [DataMember]
        public string Value
        {
            get { return this.value; }
            set { this.value = value; }
        }
        public Tag() { }
        public Tag(string name, string value)
        {
            this.name = name;
            this.value = value;
        }

    }
}
